using System;
using TestXNA3.Games.TestGame;
using TestXNA3.Games.TPGame;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using XMas;

namespace TestXNA3
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            using (GameStartup game = new GameStartup())
            {
                string gameType = TestConfig.ParseOption("gameType");
                if (gameType.ToLower() == "tp")
                {
                    game.GameInfo = new TPGame();
                }else
                if (gameType.ToLower() == "test")
                {
                    game.GameInfo = new TestGameInfo();
                }
                else
                {
                    Logger.Print("No gametype specified");
                    return;
                }

                game.Run();
            }
        }
    }
}

